gtk4.git
13 years agoRemove the multiple-tab/windows-supported APIs
Federico Mena Quintero [Sat, 15 Dec 2012 00:04:30 +0000 (18:04 -0600)]
Remove the multiple-tab/windows-supported APIs

We'll have the caller do these instead via the populate-popup signal.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRebuild the popup menu every time it is used
Federico Mena Quintero [Fri, 14 Dec 2012 23:56:53 +0000 (17:56 -0600)]
Rebuild the popup menu every time it is used

We'll need to rebuild it every time for the populate-popup signal.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoNew signal populate-popup
Federico Mena Quintero [Fri, 14 Dec 2012 17:57:49 +0000 (11:57 -0600)]
New signal populate-popup

Instead of conditionally creating contextual menu items like 'Show file properties',
we'll instead let the caller populate the popup menu, as is done for GtkEntry.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove gtk_places_sidebar_set_show_cwd(), implement that in the file chooser
Federico Mena Quintero [Tue, 11 Dec 2012 21:52:17 +0000 (15:52 -0600)]
Remove gtk_places_sidebar_set_show_cwd(), implement that in the file chooser

This removes more idiosyncratic API from the sidebar.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove the GError from the shortcut-related functions
Federico Mena Quintero [Tue, 11 Dec 2012 21:29:11 +0000 (15:29 -0600)]
Remove the GError from the shortcut-related functions

See https://bugzilla.gnome.org/show_bug.cgi?id=650363#c8 and the next comment; this
argument just makes the API harder to use without real benefit.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRename signal location-selected to open-location
Federico Mena Quintero [Tue, 11 Dec 2012 18:09:13 +0000 (12:09 -0600)]
Rename signal location-selected to open-location

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove another to-do
Federico Mena Quintero [Mon, 10 Dec 2012 23:28:07 +0000 (17:28 -0600)]
Remove another to-do

13 years agoImplement the Search keyboard shortcut
Federico Mena Quintero [Mon, 10 Dec 2012 23:26:46 +0000 (17:26 -0600)]
Implement the Search keyboard shortcut

We still lack a button to activate Search, like in Nautilus, but that will come later.

And with this, the last REMOVE_FOR_PLACES_SIDEBAR is gone!

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove unused code
Federico Mena Quintero [Mon, 10 Dec 2012 23:16:36 +0000 (17:16 -0600)]
Remove unused code

13 years agoGo back to our machinery for Recent files instead of reading recent:/// as-is
Federico Mena Quintero [Mon, 10 Dec 2012 23:14:12 +0000 (17:14 -0600)]
Go back to our machinery for Recent files instead of reading recent:/// as-is

Reading recent:/// as-is is probably fine for OPEN mode.  But for SAVE mode, we want to present
a list of recent directories.  So, we go back to our old machinery for now; in the future
we'll probably just use recent:/// and extract the list of recent directories from there.

This also fixes showing the Recent item as highlighted when the file chooser starts up.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove an obsolete function
Federico Mena Quintero [Mon, 10 Dec 2012 22:05:18 +0000 (16:05 -0600)]
Remove an obsolete function

13 years agoImplement the Alt-number quick bookmark shortcuts
Federico Mena Quintero [Mon, 10 Dec 2012 22:00:42 +0000 (16:00 -0600)]
Implement the Alt-number quick bookmark shortcuts

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoImplement the Desktop keyboard shortcut
Federico Mena Quintero [Mon, 10 Dec 2012 20:45:18 +0000 (14:45 -0600)]
Implement the Desktop keyboard shortcut

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoImplement the Home keyboard shortcut
Federico Mena Quintero [Mon, 10 Dec 2012 20:23:06 +0000 (14:23 -0600)]
Implement the Home keyboard shortcut

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoImplement the 'Add to bookmarks' command as before
Federico Mena Quintero [Mon, 10 Dec 2012 20:18:00 +0000 (14:18 -0600)]
Implement the 'Add to bookmarks' command as before

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove an obsolete function
Federico Mena Quintero [Mon, 10 Dec 2012 20:09:40 +0000 (14:09 -0600)]
Remove an obsolete function

13 years agoImplement the application-side shortcuts in GtkFileChooserDefault
Federico Mena Quintero [Mon, 10 Dec 2012 19:48:42 +0000 (13:48 -0600)]
Implement the application-side shortcuts in GtkFileChooserDefault

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoNew machinery to add application-specific shortcuts
Federico Mena Quintero [Fri, 7 Dec 2012 19:42:39 +0000 (13:42 -0600)]
New machinery to add application-specific shortcuts

The file chooser needs them for gtk_file_chooser_add_shortcut_folder() and friends.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoOne less to-do
Federico Mena Quintero [Thu, 6 Dec 2012 18:11:30 +0000 (12:11 -0600)]
One less to-do

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove the old shortcuts pane code from GtkFileChooserDefault
Federico Mena Quintero [Thu, 6 Dec 2012 00:09:44 +0000 (18:09 -0600)]
Remove the old shortcuts pane code from GtkFileChooserDefault

Oh, the giant void.
I stare into it
and it makes me afraid
that I've screwed up.

But I know I haven't.
Because any remaining bugs
will be yours to fix.

Not mine.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoAllow not setting a changed callback on GtkBookmarksManager
Federico Mena Quintero [Thu, 6 Dec 2012 00:03:54 +0000 (18:03 -0600)]
Allow not setting a changed callback on GtkBookmarksManager

13 years agoRemove obsolete comment
Federico Mena Quintero [Wed, 5 Dec 2012 23:44:49 +0000 (17:44 -0600)]
Remove obsolete comment

13 years agoSync from Nautilus commit bde2536ee72672c4cd58af7cbb3cf42a42962c21
Federico Mena Quintero [Wed, 5 Dec 2012 23:44:14 +0000 (17:44 -0600)]
Sync from Nautilus commit bde2536ee72672c4cd58af7cbb3cf42a42962c21

Use ellipsis character instead of dots

13 years agoSync from nautilus commit b2e8339d9f49770db0f6a523c8bf77b11d7eace3
Federico Mena Quintero [Wed, 5 Dec 2012 22:56:15 +0000 (16:56 -0600)]
Sync from nautilus commit b2e8339d9f49770db0f6a523c8bf77b11d7eace3

Simplify setting eject icon

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoSync from nautilus commit 0177dd24a5f7f9f5302745a865eb970a35faa78c
Federico Mena Quintero [Wed, 5 Dec 2012 22:51:32 +0000 (16:51 -0600)]
Sync from nautilus commit 0177dd24a5f7f9f5302745a865eb970a35faa78c

13 years agoAdd list of pending things in GtkPlacesSidebar
Federico Mena Quintero [Wed, 5 Dec 2012 22:51:15 +0000 (16:51 -0600)]
Add list of pending things in GtkPlacesSidebar

13 years agoRemove comments on things that Nautilus no longer needs to do
Federico Mena Quintero [Wed, 5 Dec 2012 00:25:44 +0000 (18:25 -0600)]
Remove comments on things that Nautilus no longer needs to do

13 years agoUse the right signal id
Federico Mena Quintero [Wed, 5 Dec 2012 00:18:32 +0000 (18:18 -0600)]
Use the right signal id

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemoved unneeded signal initiated-unmount
Federico Mena Quintero [Wed, 5 Dec 2012 00:09:38 +0000 (18:09 -0600)]
Removed unneeded signal initiated-unmount

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoOops, forgot to commit this header file.
Federico Mena Quintero [Wed, 5 Dec 2012 00:08:52 +0000 (18:08 -0600)]
Oops, forgot to commit this header file.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoOops, signals returning an int must be G_SIGNAL_RUN_LAST
Federico Mena Quintero [Tue, 4 Dec 2012 23:37:45 +0000 (17:37 -0600)]
Oops, signals returning an int must be G_SIGNAL_RUN_LAST

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoPort code to add a bookmark for a volume
Federico Mena Quintero [Tue, 4 Dec 2012 22:16:49 +0000 (16:16 -0600)]
Port code to add a bookmark for a volume

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoNew API to set whether URI drops are accepted
Federico Mena Quintero [Tue, 4 Dec 2012 18:57:48 +0000 (12:57 -0600)]
New API to set whether URI drops are accepted

The file chooser will not accept dropping URIs in a shortcut item.  However, Nautilus will,
to perform normal DnD for files.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoEmit drag-perform-drop when we need the caller to do the drop action
Federico Mena Quintero [Tue, 4 Dec 2012 18:52:44 +0000 (12:52 -0600)]
Emit drag-perform-drop when we need the caller to do the drop action

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoNew signal drag-perform-drop
Federico Mena Quintero [Tue, 4 Dec 2012 18:44:46 +0000 (12:44 -0600)]
New signal drag-perform-drop

The caller is supposed to take action with the specified URIs.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoNew signal drag-action-ask
Federico Mena Quintero [Tue, 4 Dec 2012 00:15:41 +0000 (18:15 -0600)]
New signal drag-action-ask

We'll ask the caller to present a popup menu (or whatever) with the possible drag actions.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoEmit drag-action-requested and feed the result to gdk_drag_status()
Federico Mena Quintero [Mon, 3 Dec 2012 23:37:11 +0000 (17:37 -0600)]
Emit drag-action-requested and feed the result to gdk_drag_status()

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoNew signal drag-action-requested
Federico Mena Quintero [Mon, 3 Dec 2012 23:09:57 +0000 (17:09 -0600)]
New signal drag-action-requested

We'll use this signal to ask the caller about what drag action to indicate
when something is being hovered on an item in the places sidebar.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoFree URI lists
Federico Mena Quintero [Mon, 3 Dec 2012 22:45:25 +0000 (16:45 -0600)]
Free URI lists

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRename function for clarity
Federico Mena Quintero [Mon, 3 Dec 2012 22:41:02 +0000 (16:41 -0600)]
Rename function for clarity

build_selection_list() -> build_uri_list()

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove the menu items to select recent-files or CWD
Federico Mena Quintero [Fri, 30 Nov 2012 17:08:08 +0000 (11:08 -0600)]
Remove the menu items to select recent-files or CWD

Per the gtk-devel meeting on 2012/11/29, we'll not have a UI in the file chooser dialog
to select between those modes.  Instead, we'll show that key in gtweaktool.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoAhem, read radio menu items like I knew how to do it
Federico Mena Quintero [Tue, 27 Nov 2012 02:43:23 +0000 (20:43 -0600)]
Ahem, read radio menu items like I knew how to do it

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRestore the originally-selected location when dynamically updating the bookmarks
Federico Mena Quintero [Sat, 24 Nov 2012 17:18:23 +0000 (11:18 -0600)]
Restore the originally-selected location when dynamically updating the bookmarks

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoOops, actually update the internal location of the places sidebar prior to notifying...
Federico Mena Quintero [Sat, 24 Nov 2012 16:59:48 +0000 (10:59 -0600)]
Oops, actually update the internal location of the places sidebar prior to notifying the caller

This is so that the sidebar will already know the URI of the location it is showing.  When
the caller asks the sidebar to change back to the same location, the call will be idempotent.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoHighlight the currently-viewed location in the places sidebar
Federico Mena Quintero [Sat, 24 Nov 2012 16:41:40 +0000 (10:41 -0600)]
Highlight the currently-viewed location in the places sidebar

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoTurn gtk_places_sidebar_set_current_uri() into _set_current_location()
Federico Mena Quintero [Sat, 24 Nov 2012 16:41:11 +0000 (10:41 -0600)]
Turn gtk_places_sidebar_set_current_uri() into _set_current_location()

To be consistent with the ::location-selected signal, which emits a GFile, we now also use a GFile
instead of a string URI in the inbound API.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoActually switch to recent:/// in its key shortcut handler
Federico Mena Quintero [Fri, 23 Nov 2012 19:24:55 +0000 (13:24 -0600)]
Actually switch to recent:/// in its key shortcut handler

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoAllow switching to recent:/// even though GIO thinks it is not a native file
Federico Mena Quintero [Fri, 23 Nov 2012 18:53:35 +0000 (12:53 -0600)]
Allow switching to recent:/// even though GIO thinks it is not a native file

That URI is not a native file, and so it would not show up if local_only=TRUE.
Add a special case for it so that recent:/// can always be visited.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoUpdate the widgets until all of them have been created
Federico Mena Quintero [Wed, 21 Nov 2012 19:13:01 +0000 (13:13 -0600)]
Update the widgets until all of them have been created

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoAdd menu items to the places sidebar to configure the startup mode
Federico Mena Quintero [Wed, 21 Nov 2012 18:08:23 +0000 (12:08 -0600)]
Add menu items to the places sidebar to configure the startup mode

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoSwitch to Recent Files or $CWD at startup
Federico Mena Quintero [Wed, 21 Nov 2012 16:40:34 +0000 (10:40 -0600)]
Switch to Recent Files or $CWD at startup

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoAdd a new org.gtk.SettingsFileChooser startup-mode settings key
Federico Mena Quintero [Wed, 21 Nov 2012 16:28:26 +0000 (10:28 -0600)]
Add a new org.gtk.SettingsFileChooser startup-mode settings key

It has two possible values, 'recent' and 'cwd'.  We will use these to determine
whether to set the default starting mode, if a folder has not been pre-set,
to showing the Recent Files list or the current working directory.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoNew way to show in the sidebar
Federico Mena Quintero [Wed, 21 Nov 2012 02:04:20 +0000 (20:04 -0600)]
New way to show  in the sidebar

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoNote about missing empty-trash functionality when unmounting a volume.
Federico Mena Quintero [Tue, 30 Oct 2012 00:57:24 +0000 (18:57 -0600)]
Note about missing empty-trash functionality when unmounting a volume.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoFix code to unmount volumes
Federico Mena Quintero [Tue, 30 Oct 2012 00:53:41 +0000 (18:53 -0600)]
Fix code to unmount volumes

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoCopy code from Nautilus to mount volumes
Federico Mena Quintero [Mon, 29 Oct 2012 20:28:12 +0000 (14:28 -0600)]
Copy code from Nautilus to mount volumes

Instead of having a nested-callback scheme (to preserve internal API compatibility),
we use a direct callback from g_volume_mount().

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoSet GTK_STYLE_CLASS_SIDEBAR on the sidebar
Federico Mena Quintero [Mon, 29 Oct 2012 17:52:34 +0000 (11:52 -0600)]
Set GTK_STYLE_CLASS_SIDEBAR on the sidebar

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove some more comments on things that Nautilus needs to do
Federico Mena Quintero [Fri, 26 Oct 2012 23:53:09 +0000 (18:53 -0500)]
Remove some more comments on things that Nautilus needs to do

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove some notes on things that Nautilus should do but already does
Federico Mena Quintero [Fri, 26 Oct 2012 18:05:56 +0000 (13:05 -0500)]
Remove some notes on things that Nautilus should do but already does

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoAdd a show-file-properties signal for Nautilus to use
Federico Mena Quintero [Mon, 22 Oct 2012 23:21:17 +0000 (18:21 -0500)]
Add a show-file-properties signal for Nautilus to use

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoNote on more things that Nautilus needs to do
Federico Mena Quintero [Mon, 22 Oct 2012 22:53:32 +0000 (17:53 -0500)]
Note on more things that Nautilus needs to do

13 years agoPresent error dialogs from the places sidebar
Federico Mena Quintero [Mon, 22 Oct 2012 22:52:27 +0000 (17:52 -0500)]
Present error dialogs from the places sidebar

13 years agoOops, reorder the bookmarks list correctly
Federico Mena Quintero [Sat, 20 Oct 2012 19:09:34 +0000 (14:09 -0500)]
Oops, reorder the bookmarks list correctly

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoEnable code to reorder bookmarks by dragging
Federico Mena Quintero [Sat, 20 Oct 2012 19:00:50 +0000 (14:00 -0500)]
Enable code to reorder bookmarks by dragging

13 years agoSync from Nautilus commit b72d57b038e50172fac2fafdc6c26660378aab34
Federico Mena Quintero [Sat, 20 Oct 2012 18:34:23 +0000 (13:34 -0500)]
Sync from Nautilus commit b72d57b038e50172fac2fafdc6c26660378aab34

No changes (except a whitespace fix), for we already had a copy of
special_directory_get_gicon().

13 years agoAdd comment about missing way to get symbolic icons for bookmarks
Federico Mena Quintero [Fri, 19 Oct 2012 17:26:40 +0000 (12:26 -0500)]
Add comment about missing way to get symbolic icons for bookmarks
Nautilus got the ability to do that in commit 0ed400b9c1692e42498bff3c10780073ec137f63.
Maybe we should just copy that code to here later.

13 years agoSync from Nautilus: bookmark: remove unused GIcon argument to nautilus_bookmark_new()
Cosimo Cecchi [Fri, 19 Oct 2012 17:14:21 +0000 (12:14 -0500)]
Sync from Nautilus: bookmark: remove unused GIcon argument to nautilus_bookmark_new()
We always pass NULL these days.
This is from nautilus commit 7aad4a33814e6e7fae5e762882db43452a575a83

13 years agoSync from Nautilus - Fix leaks
William Jon McCann [Fri, 19 Oct 2012 17:12:19 +0000 (12:12 -0500)]
Sync from Nautilus - Fix leaks
https://bugzilla.gnome.org/show_bug.cgi?id=683769
This is from nautilus commit a755aa27c636561a1ab41066484cf9bcc97667f9

13 years agoMerge master into places-sidebar to keep up with development
Federico Mena Quintero [Fri, 19 Oct 2012 16:35:22 +0000 (11:35 -0500)]
Merge master into places-sidebar to keep up with development

13 years agoUpdate Czech translation
Petr Kovar [Fri, 19 Oct 2012 11:25:50 +0000 (13:25 +0200)]
Update Czech translation

13 years agowayland: Update to reflect protocol changes
Scott Moreau [Wed, 17 Oct 2012 02:38:41 +0000 (20:38 -0600)]
wayland: Update to reflect protocol changes

13 years agoUpdate Galician translations
Fran Diéguez [Thu, 18 Oct 2012 08:53:55 +0000 (10:53 +0200)]
Update Galician translations

13 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 18 Oct 2012 06:16:39 +0000 (08:16 +0200)]
Updated Slovenian translation

13 years agoFix duplicate columns in filechooser entry completion
Matthias Clasen [Thu, 18 Oct 2012 01:21:09 +0000 (21:21 -0400)]
Fix duplicate columns in filechooser entry completion

This partically reverts commit
331bba1ad6c5d9535fc5a827b91019f5824e25a7, which broke documented
behaviour.

13 years agomenubutton: don't refer to the non-existant menu property
Cosimo Cecchi [Wed, 17 Oct 2012 21:02:53 +0000 (17:02 -0400)]
menubutton: don't refer to the non-existant menu property

7c6454246e7fa181d9e16f3520bc6d3765168f40 removed the property, but
forgot to change the name in a g_object_notify().

13 years agoUpdated Serbian translation
Мирослав Николић [Wed, 17 Oct 2012 20:24:36 +0000 (22:24 +0200)]
Updated Serbian translation

13 years agoUpdated Indonesian translation
Andika Triwidada [Wed, 17 Oct 2012 16:53:04 +0000 (23:53 +0700)]
Updated Indonesian translation

13 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 17 Oct 2012 16:05:57 +0000 (18:05 +0200)]
Updated Spanish translation

13 years agolevel-bar: Fix typo
Stefano Facchini [Wed, 17 Oct 2012 14:09:08 +0000 (16:09 +0200)]
level-bar: Fix typo

13 years agoscrolledwindow: set GDK_EXPOSURE_MASK on the overshoot window
Cosimo Cecchi [Wed, 17 Oct 2012 04:59:59 +0000 (00:59 -0400)]
scrolledwindow: set GDK_EXPOSURE_MASK on the overshoot window

Currently we use gtk_style_context_set_background() when the state flags
change in order to propagate the background color to the overshoot
window, but this is actually only needed because the window doesn't get
expose events, since we always draw a full background in draw().
This also fixes some problems when the GdkWindow of the scrolled
window's child is composited, as seen in oxygen-gtk3.

https://bugzilla.gnome.org/show_bug.cgi?id=686265

13 years agolevel-bar: add support for RTL locales
Stefano Facchini [Tue, 18 Sep 2012 12:19:01 +0000 (14:19 +0200)]
level-bar: add support for RTL locales

https://bugzilla.gnome.org/show_bug.cgi?id=684288

13 years agolevel-bar: add an "inverted" property like GtkProgressBar
Stefano Facchini [Tue, 18 Sep 2012 12:05:45 +0000 (14:05 +0200)]
level-bar: add an "inverted" property like GtkProgressBar

https://bugzilla.gnome.org/show_bug.cgi?id=684288

13 years agoAdd gdk version macros for 3.8
Stefano Facchini [Wed, 19 Sep 2012 11:33:26 +0000 (13:33 +0200)]
Add gdk version macros for 3.8

https://bugzilla.gnome.org/show_bug.cgi?id=684288

13 years agoGtkMenuButton: remove menu property as it is replaced by popup.
Ignacio Casal Quinteiro [Wed, 17 Oct 2012 12:07:31 +0000 (14:07 +0200)]
GtkMenuButton: remove menu property as it is replaced by popup.

See that it was already announced to be removed before 3.6.0
but we forgot.

13 years agocssshadowsvalue: handle gtk_css_value_transition returning NULL
Cosimo Cecchi [Tue, 16 Oct 2012 18:22:24 +0000 (14:22 -0400)]
cssshadowsvalue: handle gtk_css_value_transition returning NULL

The implementation of transition for GtkCssShadowValue can return NULL
at least when the two values have a different inset; all other parts of
the GTK/CSS machinery (e.g. GtkCssArrayValue) handle this by returning
NULL too. Instead, GtkCssShadowsValue was returning an invalid value,
where "len" was set, but some values in the array were NULL, which would
lead to a segfault when this value is later evaluated by the compute
function.

Fix this by making GtkCssShadowsValue return NULL if a shadow transition
fails, like GtkCssArrayValue does.

https://bugzilla.gnome.org/show_bug.cgi?id=686013

13 years agoreftests: fix the linear-gradient reftest
Cosimo Cecchi [Tue, 16 Oct 2012 17:02:55 +0000 (13:02 -0400)]
reftests: fix the linear-gradient reftest

Don't use a repeating linear gradient, since it can't be easily
reftested against a non-repeating one for the reasons described in the
test header.
Instead, add a separate test for repeating gradients (against another
repeating gradient).

This makes the test pass, so it can be added to the Makefile now.

13 years agocssshadow: plug a cairo_surface_t leak
Cosimo Cecchi [Tue, 16 Oct 2012 15:54:33 +0000 (11:54 -0400)]
cssshadow: plug a cairo_surface_t leak

We were never destroying the cairo surface we use for blurring, which
would lead to a huge leak.

https://bugzilla.gnome.org/show_bug.cgi?id=686209

13 years agocsskeyframes: unref GtkCssValues when free-ing
Cosimo Cecchi [Tue, 16 Oct 2012 15:52:59 +0000 (11:52 -0400)]
csskeyframes: unref GtkCssValues when free-ing

We assume a reference to all the GtkCssValues we store, so we need to
release it when free-ing.

13 years agogradient: plug a GtkCssValue refleak
Cosimo Cecchi [Tue, 16 Oct 2012 15:51:54 +0000 (11:51 -0400)]
gradient: plug a GtkCssValue refleak

Since _gtk_symbolic_color_resolve_full() returns a reference to a
GtkCssValue.

13 years agocsscomputedvalues: plug a refleak
Cosimo Cecchi [Tue, 16 Oct 2012 15:49:57 +0000 (11:49 -0400)]
csscomputedvalues: plug a refleak

_gtk_css_keyframes_compute() returns a reference to a GtkCssKeyframes,
and _gtk_css_animation_new() takes another reference.

13 years agobump version
Matthias Clasen [Tue, 16 Oct 2012 10:42:49 +0000 (06:42 -0400)]
bump version

13 years ago3.6.1
Matthias Clasen [Tue, 16 Oct 2012 02:30:17 +0000 (22:30 -0400)]
3.6.1

13 years agoFix css parser tests
Matthias Clasen [Tue, 16 Oct 2012 10:00:40 +0000 (06:00 -0400)]
Fix css parser tests

Parsing a shorthand background property was running into unexpected
errors when trying position values where there were none. To fix this,
introduce a try_parse variant of the position parse function that
silently returns NULL.

13 years agoFix 'make check'
Matthias Clasen [Tue, 16 Oct 2012 02:47:30 +0000 (22:47 -0400)]
Fix 'make check'

13 years agoappchooserwidget: check for g_app_info_should_show()
Cosimo Cecchi [Mon, 15 Oct 2012 22:45:49 +0000 (18:45 -0400)]
appchooserwidget: check for g_app_info_should_show()

This ensures NoDisplay=true or NotShowIn/OnlyShowIn values in the
desktop file are respected.

13 years agoa11y: fix private strict regression
Cosimo Cecchi [Mon, 15 Oct 2012 21:09:04 +0000 (17:09 -0400)]
a11y: fix private strict regression

Commit 0bbfcc249191026a1ee822545398ec6e5e36f7f4 added a private struct
for GtkImageAccessible, but forgot to call g_type_class_add_private().

13 years agoa11y: fix the build
Cosimo Cecchi [Mon, 15 Oct 2012 15:32:56 +0000 (11:32 -0400)]
a11y: fix the build

Fix a typo introduced in 0ad379708f79dbff916b1fcd431d3e3114bf8e25

13 years agoAdd private structs to all remaining headers
Matthias Clasen [Mon, 15 Oct 2012 10:25:01 +0000 (06:25 -0400)]
Add private structs to all remaining headers

These are not used currently. Just put them in now in
case we need them in the future.

13 years agoGtkWidgetAccessible: add a private struct
Matthias Clasen [Mon, 15 Oct 2012 10:04:11 +0000 (06:04 -0400)]
GtkWidgetAccessible: add a private struct

Move instance fields to a private struct, in preparation
for installing a11y headers.
This also required removing access to GtkWidgetAccessible innards
from several accessible implementations.

13 years agoGtkTreeViewAccessible: add a private struct
Matthias Clasen [Mon, 15 Oct 2012 09:56:41 +0000 (05:56 -0400)]
GtkTreeViewAccessible: add a private struct

Move instance fields to a private struct, in preparation
for installing a11y headers.